package com.itkjb.leisurely.resource.sys.model.properties;

import com.itkjb.leisurely.resource.common.SysConstants;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

/**
 * Copyright (C), 2021-2099
 *
 * @Author: lix
 * @Date: 2021/4/10 7:26 下午
 * @Description: 资源服务配置文件
 * @Version: V1.0.0
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "itkjb.leisurely.resource.sys")
public class ResourceWebConfig {
    /**
     * 内置角色编码
     */
    private Set<String> innerRoleCode = new HashSet<>();

    public ResourceWebConfig() {
        innerRoleCode.addAll(Arrays.asList(SysConstants.INWARD_ROLE_CODE));
    }
}
